package service.impl;

import bean.OrderItem;
import dao.OrderItemDao;
import dao.impl.OrderItemDaoImpl;
import service.OrderItemService;

import java.util.List;

public class OrderItemServiceImpl implements OrderItemService {
    private OrderItemDao orderItemDao = new OrderItemDaoImpl();
    @Override
    public List<OrderItem> getOrderItemsByOrderId(int orderId) {
        return orderItemDao.getOrderItemsByOrderId(orderId);
    }

    @Override
    public boolean addOrderItem(OrderItem orderItem) {
        return orderItemDao.addOrderItem(orderItem);
    }
}
